#include <distr1.hpp>
Public Member Functions | |
Distr1Parser () | |
virtual | ~Distr1Parser () |
void | extract (_data_struct &data_struct, gridpack::component::DataCollection *data) |
void | parse (std::vector< std::string > &split_line, gridpack::component::DataCollection *data) |
void | store (std::vector< std::string > &split_line, _data_struct &data) |
gridpack::parser::Distr1Parser< _data_struct >::Distr1Parser | ( | ) | [explicit] |
Constructor
virtual gridpack::parser::Distr1Parser< _data_struct >::~Distr1Parser | ( | ) | [virtual] |
Destructor
void gridpack::parser::Distr1Parser< _data_struct >::extract | ( | _data_struct & | data_struct, | |
gridpack::component::DataCollection * | data | |||
) |
Extract data from _data_struct and store it in data collection object
data_struct | data struct object | |
data | data collection object | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::component::DataCollection::getValue(), RELAY_BLINT1, RELAY_BLINT2, RELAY_BLRO1, RELAY_BLRO2, RELAY_BLTYPE1, RELAY_BLTYPE2, RELAY_BMON, RELAY_DIRANG, RELAY_IBUS1, RELAY_IBUS2, RELAY_IBUS3, RELAY_ID, RELAY_ID1, RELAY_ID2, RELAY_ID3, RELAY_JBUS1, RELAY_JBUS2, RELAY_JBUS3, RELAY_MODEL, RELAY_MTYPE, RELAY_NUMBER, RELAY_RS, RELAY_SEBTIME, RELAY_SERCTIME, RELAY_THCUR, RELAY_TRBTIME, RELAY_TRRCTIME, RELAY_ZONE1_CENANG, RELAY_ZONE1_CENDIS, RELAY_ZONE1_REACH, RELAY_ZONE1_TIME, RELAY_ZONE2_CENANG, RELAY_ZONE2_CENDIS, RELAY_ZONE2_REACH, RELAY_ZONE2_TIME, RELAY_ZONE3_CENANG, RELAY_ZONE3_CENDIS, RELAY_ZONE3_REACH, RELAY_ZONE3_TIME, and gridpack::component::DataCollection::setValue().
void gridpack::parser::Distr1Parser< _data_struct >::parse | ( | std::vector< std::string > & | split_line, | |
gridpack::component::DataCollection * | data | |||
) |
Parser list of strings and store results in data collection object
split_line | list of tokens from .dyr file | |
data | data collection object | |
model | name of generator model | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::utility::StringUtils::clean2Char(), gridpack::component::DataCollection::getValue(), RELAY_BLINT1, RELAY_BLINT2, RELAY_BLRO1, RELAY_BLRO2, RELAY_BLTYPE1, RELAY_BLTYPE2, RELAY_BMON, RELAY_DIRANG, RELAY_IBUS1, RELAY_IBUS2, RELAY_IBUS3, RELAY_ID, RELAY_ID1, RELAY_ID2, RELAY_ID3, RELAY_JBUS1, RELAY_JBUS2, RELAY_JBUS3, RELAY_MODEL, RELAY_MTYPE, RELAY_NUMBER, RELAY_RS, RELAY_SEBTIME, RELAY_SERCTIME, RELAY_THCUR, RELAY_TRBTIME, RELAY_TRRCTIME, RELAY_ZONE1_CENANG, RELAY_ZONE1_CENDIS, RELAY_ZONE1_REACH, RELAY_ZONE1_TIME, RELAY_ZONE2_CENANG, RELAY_ZONE2_CENDIS, RELAY_ZONE2_REACH, RELAY_ZONE2_TIME, RELAY_ZONE3_CENANG, RELAY_ZONE3_CENDIS, RELAY_ZONE3_REACH, RELAY_ZONE3_TIME, gridpack::component::DataCollection::setValue(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().
void gridpack::parser::Distr1Parser< _data_struct >::store | ( | std::vector< std::string > & | split_line, | |
_data_struct & | data | |||
) |
Parse list of strings store results in data_struct object
split_line | list of tokens from .dyr file | |
data | data struct that stores information from file |
References gridpack::utility::StringUtils::clean2Char(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().